﻿<%@ Page Title="Agendar Horário" Language="C#" MasterPageFile="~/paginas/MasterPage.master"
    AutoEventWireup="true" CodeFile="Agenda.aspx.cs" Inherits="paginas_Agenda" %>

<asp:Content ID="contentMain" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <h1>
        Minha agenda de Serviços</h1>
    <div id="schedule">
        <div>
            <table border="1" cellpadding="0" cellspacing="0">
                <asp:Repeater ID="rptSchedule" runat="server" 
                    onitemcommand="rptSchedule_ItemCommand">
                    <ItemTemplate>
                        <tr>
                            <td class="hour-cell">
                                <%# DataBinder.Eval(Container, "DataItem") %>
                            </td>
                            <td class="appointment-cell">
                                <table border="0" cellpadding="0" cellspacing="0" class="appointment-table">
                                    <tr>
                                        <td class="first-appointment-cell">
                                            <asp:Literal runat="server" ID="litHalfHour1" />
                                            <span class="actions" runat="server" id="spanActions">
                                                <asp:ImageButton CommandName="Editar" ID="imgEdit" runat="server" ImageUrl="~/imagens/calculator_edit.png" />
                                                <asp:ImageButton CommandName="Apagar" OnClientClick="return confirm('Voce tem certeza?')" ID="imgDelete" runat="server" ImageUrl="~/imagens/calculator_delete.png"  />
                                            </span>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
            </table>
        </div>
    </div>
    <div class="schedule-appointment">
        <div>
            <asp:HiddenField ID="hfId" runat="server" />
            Hora Inicial:
            <asp:DropDownList runat="server" ID="ddHorasInicial">
            </asp:DropDownList>
            Hora Final:
            <asp:DropDownList runat="server" ID="ddHorasFinal">
            </asp:DropDownList>
            Funcionario:
            <asp:DropDownList runat="server" ID="ddFuncionario">
            </asp:DropDownList>
            <asp:Label ID="Pessoa" runat="server" Text="Pessoa:"></asp:Label>
            <asp:DropDownList ID="ddPessoa" runat="server">
            </asp:DropDownList>
            Servico:
            <asp:DropDownList runat="server" ID="ddServico">
            </asp:DropDownList>
            Descricao:
            <asp:TextBox ID="txtDescricao" runat="server" />
           Obs:
            <asp:TextBox ID="txtObs" runat="server" />
            <asp:Button Text="Adicionar" runat="server" ID="btnAdicionar" onclick="btnAdicionar_Click" />
        </div>
    </div>
</asp:Content>
